<script type="text/ng-template" id="dialog">

    <div class="modal-body">
		<div class="row">
			<table class="table order-table-detail">
		        <tbody>
		            <tr>
		                <td class="nob_t">
		                    <div class="col-xs-4"><span class="color666666">货品编号：</span><span ng-bind="orderdetail.MaterialCode" style="width=100px"></span></div>
		                    <div class="col-xs-4"><span class="color666666">货品名称：</span><span ng-bind="orderdetail.MaterialName"></span></div>
		                </td>
		            </tr>
		            <tr>
		                <td>
		                    <div class="col-xs-4">
		                        <span class="color666666">规格型号：</span><span ng-bind="orderdetail.SpeciModel"></span>
		                    </div>
		                    <div class="col-xs-4">
		                        <span class="color666666">单位：</span><span ng-bind="orderdetail.UnitName"></span>
		                    </div>
		                </td>
		            </tr>
		            <tr>
		                <td>
		                    <div class="col-xs-4">
		                        <span class="color666666">批号：</span><span ng-bind="orderdetail.ProductNumber"></span>
		                    </div>
		                    <div class="col-xs-4">
		                        <span class="color666666">生产日期：</span><span ng-bind="orderdetail.ProductDate"></span>
		                    </div>
		                </td>
		            </tr>
 					<tr>
		                <td>
		                    <div class="col-xs-4">
		                        <span class="color666666">发货数量：</span><span ng-bind="orderdetail.ShipQuantity"></span>
		                    </div>
		                </td>
		            </tr>
					<tr>
		                <td>
							<div class="col-xs-4">
                            	<span class="color666666" style="float:left" > 到货数量：</span>
                                <div class="col-xs-7 clearPaddingRight">
                                    <input type="text" id="ReceptQuantity" ng-model="ArrivalQuantity" ng-blur="checkQuantity(ArrivalQuantity, 1)" ng-focus="getOldValue(ArrivalQuantity)" class="form-control ng-pristine ng-untouched ng-valid" "/>
                                </div>
		                	</div>
		                	<div class="col-xs-4">
                            	<span class="color666666" style="float:left" > 接收数量：</span>
                                <div class="col-xs-7 clearPaddingRight">
                                    <input type="text" id="ReceptQuantity" ng-model="ReceptQuantity" ng-blur="checkQuantity(ReceptQuantity, 2)" ng-focus="getOldValue(ReceptQuantity)" class="form-control ng-pristine ng-untouched ng-valid" "/>
                                </div>
		                	</div>
							<div class="col-xs-4">
                            	<span class="color666666" style="float:left" > 拒收数量：</span>
                                <div class="col-xs-7 clearPaddingRight">
                                    <input type="text" id="RefuseQuantity" ng-model="RefuseQuantity" ng-blur="checkQuantity(RefuseQuantity, 3)"  ng-focus="getOldValue(RefuseQuantity)" class="form-control ng-pristine ng-untouched ng-valid" "/>
                                </div>
		                	</div>
		                </td>
		            </tr>
					<tr>
		                <td>
		                	<div class="col-xs-12">
                            	<span class="color666666" style="float:left" > 拒收原因：</span>
                            	<div class="col-xs-10">
                                    <input type="text" ng-model="RefuseReason" class="form-control ng-pristine ng-untouched ng-valid" "/>
                            	</div>
		                	</div>
		                </td>
		            </tr>
				</tbody>
			</table>
		</div>
        <div class="row">
            <div class="col-xs-12">
                <span class="color666666">备注：</span><textarea class="form-control" style="min-height:160px;resize:vertical;" maxlength="255" placeholder="限255个字" ng-model="RemarkSub"></textarea>
            </div>
        </div>
    </div>
    <div>
        <div class="modal-footer">
            <div class="col-xs-12">
                <button class="btn btn-save btn-warning" ng-disabled="bSubmitDisabled" ng-click="modifyData(orderdetail, ArrivalQuantity, ReceptQuantity, RefuseQuantity, RefuseReason, RemarkSub)">确定</button>
 				<button class="btn btn-save" ng-disabled="bSubmitDisabled" ng-click="closeDialog()">取消</button>
            </div>
        </div>
    </div>
</script>
